package com.sywb.chuangyebao.bean;

import android.text.TextUtils;

import com.sywb.chuangyebao.Constants;

import org.bining.footstone.adapter.entity.MultiItemEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by pxb on 2018/6/21.
 */

public class ConsultBean  extends MultiItemEntity implements Serializable {
        private int item_style;
        private ContentBean content;

        public int getItem_style() {
            return item_style;
        }

        public void setItem_style(int item_style) {
            this.item_style = item_style;
        }

        public ContentBean getContent() {
            return content;
        }

        public void setContent(ContentBean content) {
            this.content = content;
        }
        //加盟咨询实体类
        public static class ContentBean extends MultiItemEntity implements Serializable{
            private String item_type;
            private int item_id;
            private String title;
            private int topic_id; //话题id
            private String topic_name; //话题题目
            private int uid;
            private String projectid;
            private String audio; //语音路径
            private String create_time;
            private RichInfoListBean richInfoList;
            private String mobi_url;
            private String answer;
            private CountBeanX count;
            private OwnerBean owner; //提问用户信息
            private List<?> flag;
            private List<?> pic;

            public void setItemType() {
                if (!TextUtils.isEmpty(audio)) {
                    itemType = Constants.QANDA_MEDIA;
                    return;
                }
                if (pic != null && pic.size() > 0) {
                    if (pic.size() == 1) {
                        itemType = Constants.QANDA_PIC_ONE;
                    } else {
                        itemType = Constants.QANDA_PIC_THREE;
                    }
                    return;
                }
                itemType = Constants.QANDA_TEXT;
            }

            public void setTopic() {
            }

            public String getItem_type() {
                return item_type;
            }

            public void setItem_type(String item_type) {
                this.item_type = item_type;
            }

            public int getItem_id() {
                return item_id;
            }

            public void setItem_id(int item_id) {
                this.item_id = item_id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public int getTopic_id() {
                return topic_id;
            }

            public void setTopic_id(int topic_id) {
                this.topic_id = topic_id;
            }

            public String getTopic_name() {
                return topic_name;
            }

            public void setTopic_name(String topic_name) {
                this.topic_name = topic_name;
            }

            public int getUid() {
                return uid;
            }

            public void setUid(int uid) {
                this.uid = uid;
            }

            public String getProjectid() {
                return projectid;
            }

            public void setProjectid(String projectid) {
                this.projectid = projectid;
            }

            public String getAudio() {
                return audio;
            }

            public void setAudio(String audio) {
                this.audio = audio;
            }

            public String getCreate_time() {
                return create_time;
            }

            public void setCreate_time(String create_time) {
                this.create_time = create_time;
            }

            public RichInfoListBean getRichInfoList() {
                return richInfoList;
            }

            public void setRichInfoList(RichInfoListBean richInfoList) {
                this.richInfoList = richInfoList;
            }

            public String getMobi_url() {
                return mobi_url;
            }

            public void setMobi_url(String mobi_url) {
                this.mobi_url = mobi_url;
            }

            public String getAnswer() {
                return answer;
            }

            public void setAnswer(String answer) {
                this.answer = answer;
            }

            public CountBeanX getCount() {
                return count;
            }

            public void setCount(CountBeanX count) {
                this.count = count;
            }

            public OwnerBean getOwner() {
                return owner;
            }

            public void setOwner(OwnerBean owner) {
                this.owner = owner;
            }

            public List<?> getFlag() {
                return flag;
            }

            public void setFlag(List<?> flag) {
                this.flag = flag;
            }

            public List<?> getPic() {
                return pic;
            }

            public void setPic(List<?> pic) {
                this.pic = pic;
            }

            public static class RichInfoListBean {
            }

            public static class CountBeanX {
                private int hits;
                private int wd_answer;

                public int getHits() {
                    return hits;
                }

                public void setHits(int hits) {
                    this.hits = hits;
                }

                public int getWd_answer() {
                    return wd_answer;
                }

                public void setWd_answer(int wd_answer) {
                    this.wd_answer = wd_answer;
                }
            }

            public static class OwnerBean {
                private int uid;
                private int user_type;
                private UserRoleBean user_role; //用户角色
                private String nickname;
                private String name;
                private String avatar_s; //提问人头像
                private String avatar_l;
                private String avatar_hd;
                private String brief_intro;
                private int fans_num;

                public int getUid() {
                    return uid;
                }

                public void setUid(int uid) {
                    this.uid = uid;
                }

                public int getUser_type() {
                    return user_type;
                }

                public void setUser_type(int user_type) {
                    this.user_type = user_type;
                }

                public UserRoleBean getUser_role() {
                    return user_role;
                }

                public void setUser_role(UserRoleBean user_role) {
                    this.user_role = user_role;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getAvatar_s() {
                    return avatar_s;
                }

                public void setAvatar_s(String avatar_s) {
                    this.avatar_s = avatar_s;
                }

                public String getAvatar_l() {
                    return avatar_l;
                }

                public void setAvatar_l(String avatar_l) {
                    this.avatar_l = avatar_l;
                }

                public String getAvatar_hd() {
                    return avatar_hd;
                }

                public void setAvatar_hd(String avatar_hd) {
                    this.avatar_hd = avatar_hd;
                }

                public String getBrief_intro() {
                    return brief_intro;
                }

                public void setBrief_intro(String brief_intro) {
                    this.brief_intro = brief_intro;
                }

                public int getFans_num() {
                    return fans_num;
                }

                public void setFans_num(int fans_num) {
                    this.fans_num = fans_num;
                }

                public static class UserRoleBean {
                    private String _$1;

                    public String get_$1() {
                        return _$1;
                    }

                    public void set_$1(String _$1) {
                        this._$1 = _$1;
                    }
                }
            }
        }

}
